//
//  NIPageView.h
//  NI
//
//  Created by navinfo air on 15/12/30.
//  Copyright © 2015年 oc. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol NIPageViewDelegate <NSObject>
@optional
- (void)pageDidFinishScroll;
@end

@interface NIPageView : UIView<UIScrollViewDelegate>

@property (weak, nonatomic) IBOutlet UIScrollView *scrollView;
@property (weak, nonatomic) IBOutlet UIView *contentView;
@property (weak, nonatomic) IBOutlet UIView *scrollContentView;

@property (weak, nonatomic) IBOutlet UIPageControl *pageControl;

@property (assign, nonatomic) id<NIPageViewDelegate> delegate;
- (void)setImageArray:(NSArray *)imageArray keyName:(NSString *)name;
- (void)setPageImage:(UIImage *)pageImage currentPageImage:(UIImage *)currentPageImage;
- (void)addButton2Page:(UIButton *)button pageIndex:(NSInteger)page;
- (void)scrollToPage:(NSInteger)pageIndex;
@property(nonatomic)UIViewContentMode imageContentMode;
@end
